import request from "./index"

// 请求中： 请求参数和返回值的类型都需要进行约束

// 验证码请求
export const CaptchaAPI = ():Promise<CaptchaAPIRes> =>request.get("/api/auth/code");

// 登录请求
export const LoginAPI = (params:LoginAPIReq):Promise<LoginAPIRes> =>request.post("/api/auth/login",params);

export const categoryListWithGoods = (params?:any):Promise<any> =>request.get("/manager/category/listWithGoods",params);

export const specPageWithSubs = (params:any):Promise<any> =>request.post("/manager/spec/pageWithSubs",params);